<%--
  Created by IntelliJ IDEA.
  User: 甲乙饼叮叮
  Date: 2019/10/15
  Time: 10:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div style="display:block;" class="tabpage">
    <h3 class="glyphicon glyphicon-grain">我的就诊人</h3>

    <div class="counts">
        <div class="texts">
            <h4><b>温馨提示:</b></h4>
            <span>您已添加${count}人,还可添加${cout}人</span>
        </div>
        <c:if test="${count < 8}">
            <div class="btn-kat">
                <a href="<%=request.getContextPath()%>/personal/newin"><button class="btn btn-success" onclick="">添加就诊人</button></a>&nbsp;&nbsp;
            </div>
        </c:if>
        <c:if test="${count == 8}">
        <div class="btn-kat">
            <button class="btn btn-warning">添加到上限,请先删除</button>
        </div>
        </c:if>
        <c:forEach items="${requestScope.userinfos.list}" var="u">
            <div style="margin-bottom: 50px;">
                <div class="list">
                    <div class="leftlist">
                        <h4>${u.uname}</h4><br>
                        <span style="color: rgb(180, 180, 180)">${u.sex}</span>&nbsp;&nbsp;
                        <span style="color: rgb(180, 180, 180)">${u.age}</span>&nbsp;&nbsp;
                        <span style="color: rgb(180, 180, 180)">${u.idcard}</span>
                    </div>
                    <div class="rightlist" style="border: 0px;">
                        <div class="btn-kat">
                            <button class="btn btn-danger" onclick="location.href='${pageContext.request.contextPath}/personal/delnewin?id=${u.id}'">删除</button>
                        </div>
                    </div>
                </div>
            </div>
        </c:forEach>
    </div>
</div>
<div style="margin: 0 auto;"><%@ include file="../ajax/newinpage.jsp"%></div>
